package Day06;

import java.util.Scanner;

public class Demo07 {
    public static void main(String[] args) {
        Scanner in =new Scanner(System.in);
        System.out.println("请输入字母");
        String word = in.next();//word这个字符串键入的字母
        char number = word.charAt(0);
        switch(number){
            case 'a':
                System.out.println("A");
                break;
            case 'b':
                System.out.println("B");
                break;
            case 'c':
                System.out.println("C");
                break;
            case 'd':
                System.out.println("D");
                break;
            case 'e':
                System.out.println("E");
                break;
            default:
                System.out.println("other");
                break;
        }

    }
}
